package com.example.plat.enity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("place")
@ApiModel(description = "地点")
public class Place {

    @ApiModelProperty("地点ID")
    @TableId(type = IdType.AUTO)
    Long id;

    @ApiModelProperty("名称")
    @TableField("name")
    String name;

    @ApiModelProperty("经度")
    @TableField("latitude")
    Double latitude;

    @ApiModelProperty("纬度")
    @TableField("longitude")
    Double longitude;

    @ApiModelProperty("地址")
    @TableField("address")
    String address;
}
